﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CCPnuts.ISkyDiskFileSystem.Interfaces;
using CCPnuts.ISkyDiskFileSystem.Exceptions;
using CCPnuts.Pack;

namespace CCPnuts.ISkyDiskFileSystem
{
    public class SkyFile : SkyElement
    {
        #region Packed Target

        internal SkyFile(IPacked target) : base(target) { }

        internal new I_SkyFile Packed { get { return (I_SkyFile)base.Packed; } }

        #endregion

        #region Proxy Members

        #region Essential Members

        /// <summary>
        /// get the size of the file
        /// </summary>
        public long Size { get { return Packed.Size; } }

        #endregion

        #endregion

        #region Own Members

        public override SkyElementTypes ElementType
        {
            get { return SkyElementTypes.File; }
        }

        #endregion
    }

    public static partial class PackedInfos
    {
        public static PackedInfo SkyFile { get { return new PackedInfo(p => new SkyFile(p)); } }
    }
}
